package com.jair.apicommon.model.dto;

import lombok.Data;
import java.io.Serializable;

@Data
public class UserAuthResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Boolean success;
    private String message;
    private Object userInfo;
    
    public static UserAuthResponse success(Object userInfo) {
        UserAuthResponse response = new UserAuthResponse();
        response.setSuccess(true);
        response.setUserInfo(userInfo);
        return response;
    }
    
    public static UserAuthResponse error(String message) {
        UserAuthResponse response = new UserAuthResponse();
        response.setSuccess(false);
        response.setMessage(message);
        return response;
    }
}
